const mongoose = require('mongoose');

var schema = new mongoose.Schema({
    name: {
        type: String,
        required: true
    },
    email: {
        type: String,
        reuqired: true
    },
    password: {
        type: String,
        required: true
    },
    role: {
        type: String,
        default:'user'
    }

})

var registerModel = mongoose.model('users', schema);

exports.registerModel = registerModel;